<form action="" method="post" name="systemset" id="systemset">
<div class="maintable_div" style="width:750px">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="maintable">
  <tr>
    <th align="left"><div class="thead"><{$page_title}></div></th>
  </tr>
  <tr>
    <td style="padding:5px 15px">
    <fieldset>
      <legend>网站基本信息</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td width="140" align="right">页面字符集<br /></td>
          <td width="588">
          <select name="char_set">
<option value="utf-8" <{$char_set|selected:"utf-8"}>>utf-8</option>
<option value="iso-8859-1" <{$char_set|selected:"iso-8859-1"}>>iso-8859-1</option>
<option value="gb2312"  <{$char_set|selected:"gb2312"}>>gb2312</option>
<option value="big5" <{$char_set|selected:"big5"}>>big5</option>
          </select>
          <span class="gray">默认为utf-8,如无特殊需要请勿修改</span></td>
          </tr>
        <tr>
          <td align="right">网站名称</td>
          <td><input name="site_name" type="text" value="<{$site_name}>" class="text" size="40" /></td>
          </tr>
        <tr>
          <td align="right">网站URL地址<br /></td>
          <td><input name="site_url" type="text" value="<{$site_url}>" class="text" size="40" /></td>
          </tr>
        <tr>
        <tr>
          <td align="right">网站关键字</td>
          <td><input name="site_keywords" type="text" value="<{$site_keywords}>" class="text" size="80" /></td>
          </tr>
        <tr>
          <td align="right">网站描述<br /></td>
          <td><input name="site_description" type="text" value="<{$site_description}>" class="text" size="100" /></td>
          </tr>
<td align="right">网站备案号</td>
          <td><input name="site_cert" type="text" value="<{$site_cert}>" class="text" size="40" /></td>
          </tr>
        <tr>
          <td align="right">管理员邮箱</td>
          <td><input name="site_mail" type="text" value="<{$site_mail}>" class="text" size="40" /></td>
        </tr>
    <{if $AdminLevel eq "0"}>
        <tr>
          <td align="right">网站位于测试空间</td>
          <td><select name="site_is_test_space">
            <option value="1" <{$site_is_test_space|selected:"1"}>>是
            </option>
<option value="0" <{$site_is_test_space|selected:"0"}>>否</option>
          </select>
          <span class="gray">设置该项可以将网站轻松向正式空间转移</span>          </td>
        </tr>
        <tr>
          <td align="right">测试空间目录名称</td>
          <td><input name="site_test_space_name" type="text" value="<{$site_test_space_name}>" class="text" size="40" />
          <span class="gray">例如: test</span></td>
        </tr>
        <tr>
          <td align="right">网站对外开放</td>
          <td><select name="site_open">
            <option value="1" <{$site_open|selected:"1"}>>开放
            </option>
<option value="0" <{$site_open|selected:"0"}>>关闭</option>
          </select>          </td>
        </tr>
    <{/if}>
      </table>
    </fieldset>
    <fieldset>
      <legend>上传设置</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
         <td width="140" align="right">允许上传的文件大小</td>
          <td><input name="upfile_size" type="text" value="<{$upfile_size}>" class="text" size="20" />
            <span class="gray">KB (千字节,1024KB=1MB)</span></td>
        </tr>
        <tr>
          <td align="right" valign="top">允许上传的文件格式</td>
          <td><textarea name="allow_file_type" class="text" style="height:60px;width:500px"><{$allow_file_type}></textarea><br />
          <span class="gray">请输入小写扩展名，用 | 符号分隔，例如：jpg|gif|bmp</span></td>
        </tr>
      </table>
    </fieldset>
    <fieldset>
      <legend>图片设置</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td width="140" align="right">产品缩略图宽</td>
          <td><input name="product_thumb_width" type="text" value="<{$product_thumb_width}>" class="text" size="10" />
            <span class="gray">自动缩放(width:px)</span></td>
        </tr>
        <tr>
          <td align="right">产品缩略图高</td>
          <td><input name="product_thumb_height" type="text" value="<{$product_thumb_height}>" class="text" size="10" />
            <span class="gray">自动缩放(height:px)</span></td>
        </tr>
        <tr>
          <td width="140" align="right">产品大图宽</td>
          <td><input name="product_image_width" type="text" value="<{$product_image_width}>" class="text" size="10" />
            <span class="gray">超出该尺寸将自动调整(width:px)</span></td>
        </tr>
        <tr>
          <td align="right">产品大图高</td>
          <td><input name="product_image_height" type="text" value="<{$product_image_height}>" class="text" size="10" />
            <span class="gray">超出该尺寸将自动调整(height:px) </span></td>
        </tr>
        <tr>
          <td align="right">图片加水印</td>
          <td>
          <select name="watermark">
            <option value="no" <{$watermark|selected:"none"}>>否</option>
            <option value="text" <{$watermark|selected:"text"}>>文字水印</option>
            <option value="image" <{$watermark|selected:"image"}>>图片水印</option>
          </select>          </td>
        </tr>
        <tr>
          <td align="right">水印位置</td>
          <td>
          <select name="watermark_position">
            <option value="0" <{$watermark_position|selected:"0"}>>随机</option>
            <option value="1" <{$watermark_position|selected:"1"}>>顶端居左</option>
            <option value="2" <{$watermark_position|selected:"2"}>>顶端居中</option>
            <option value="3" <{$watermark_position|selected:"3"}>>顶端居右</option>
            <option value="4" <{$watermark_position|selected:"4"}>>中部居左</option>
            <option value="5" <{$watermark_position|selected:"5"}>>中部居中</option>
            <option value="6" <{$watermark_position|selected:"6"}>>中部居右</option>
            <option value="7" <{$watermark_position|selected:"7"}>>底端居左</option>
            <option value="8" <{$watermark_position|selected:"8"}>>底端居中</option>
            <option value="9" <{$watermark_position|selected:"9"}>>底端居右</option>
          </select>          </td>
        </tr>
        <tr>
          <td align="right">水印文字</td>
          <td><input name="watermark_text" type="text" value="<{$watermark_text}>" class="text" size="30" /></td>
        </tr>
        <tr>
          <td align="right">水印文字颜色</td>
          <td><input name="watermark_text_color" type="text" id="watermark_text_color" value="<{$watermark_text_color}>" size="10" class="text">   
	  <img border=0 src="selcolor/fcolor.gif" style="cursor:pointer;background-Color:<{$watermark_text_color}>;" onClick="getcolor(this,'watermark_text_color');" title="选取颜色!" align="absmiddle"></td>
        </tr>
        <tr>
          <td align="right"><a href="#" <{if $watermark_image!=""}>onmouseover="return overlib('<img src=<{$watermark_image}> />',FGCOLOR,'#FFFFFF',BGCOLOR,'#DFDFDF',WIDTH,10, VAUTO);" onmouseout="return nd();" <{/if}> >水印图片</a></td>
          <td><input name="watermark_image" type="text" value="<{$watermark_image}>" class="text" size="60" />
            <input type="button" name="Submit" class="button" value="上传图片" onclick="OpenUpLoad('systemset','watermark_image',1,0)" /></td>
        </tr>
      </table>
    </fieldset>
     <fieldset>
      <legend>邮件设置</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td align="right">是否启用</td>
          <td>
          <select name="site_mail_open">
            <option value="1" <{$site_mail_open|selected:"1"}>>是</option>
            <option value="0" <{$site_mail_open|selected:"0"}>>否</option>
          </select>
          </td>
        </tr>
        <tr>
          <td width="140" align="right">Email</td>
          <td><input name="site_mail" type="text" value="<{$site_mail}>" class="text" size="30" />
            <span class="gray">e.g. your@domail.com</span></td>
        </tr>
        <tr>
          <td align="right">账号</td>
          <td><input name="site_mail_name" type="text" value="<{$site_mail_name}>" class="text" size="30" />
            <span class="gray">e.g. your</span></td>
        </tr>
        <tr>
          <td width="140" align="right">密码</td>
          <td><input name="site_mail_pwd" type="password" value="<{$site_mail_pwd}>" class="text" size="30" /></td>
        </tr>
        <tr>
          <td align="right">smtp</td>
          <td><input name="site_mail_smtp" type="text" value="<{$site_mail_smtp}>" class="text" size="30" /> </td>
        </tr>
        <tr>
          <td align="right">端口</td>
          <td><input name="site_mail_port" type="text" value="<{$site_mail_port}>" class="text" size="10" /></td>
        </tr>
        <tr>
          <td align="right">ssl链接</td>
          <td>
          <select name="site_mail_ssl">
            <option value="1" <{$site_mail_ssl|selected:"1"}>>是</option>
            <option value="0" <{$site_mail_ssl|selected:"0"}>>否</option>
          </select></td>
        </tr>
      </table>
     </fieldset>    
    <fieldset>
      <legend>留言本设置</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td align="right" width="140">是否开放留言本</td>
          <td><select name="gbook_open">
            <option value="1" <{$gbook_open|selected:"1"}>>开放</option>
            <option value="0" <{$gbook_open|selected:"0"}>>关闭</option>
          </select>
          </td>
        </tr>
        <tr>
          <td width="140" align="right" valign="top">留言分类</td>
          <td><textarea name="gbook_sort" style="height:60px;width:500px" class="text"><{$gbook_sort}></textarea> </br>*多个分类之间请用“||”分开
          </td>
        </tr>
        <tr>
          <td align="right" valign="top">限制访问IP</td>
          <td><textarea name="gbook_limit_ip" style="height:60px;width:500px" class="text"><{$gbook_limit_ip}></textarea> </br>*多个IP之间请用“||”分开</td>
        </tr>
        <!--<tr>
          <td width="140" align="right">每页显示留言数量</td>
          <td><input name="gbook_page_size" type="text" value="<{$gbook_page_size}>" class="text" size="10" />
            <span class="gray">条</span></td>
        </tr>
        <tr>
          <td align="right">留言间隔时间</td>
          <td><input name="gbook_post_time" type="text" value="<{$gbook_post_time}>" class="text" size="10" />
            <span class="gray">秒,可防止恶意刷新</span></td>
        </tr>
        <tr>
          <td align="right">发布留言是否需要审核</td>
          <td><select name="gbook_post_verify">
            <option value="1" <{$gbook_post_verify|selected:"1"}>>需要审核</option>
            <option value="0" <{$gbook_post_verify|selected:"0"}>>直接发布</option>
          </select></td>
        </tr>
        <tr>
          <td align="right">允许匿名用户发表留言</td>
          <td><select name="gbook_post_guest">
            <option value="1" <{$gbook_post_guest|selected:"1"}>>是</option>
            <option value="0" <{$gbook_post_guest|selected:"0"}>>否</option>
          </select></td>
        </tr>-->
      </table>
    </fieldset>
    <fieldset>
      <legend>下载设置</legend>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr>
          <td align="right" width="140">是否需要填写用户资料</td>
          <td><select name="download_need">
            <option value="1" <{$download_need|selected:"1"}>>需要</option>
            <option value="0" <{$download_need|selected:"0"}>>不需要</option>
          </select>
          </td>
        </tr>
      </table>
    </fieldset>
    </td>
  </tr>
</table>
</div>

<div class="formControl">
    <table width="740" border="0" align="center" cellpadding="3" cellspacing="0">
      <tr>
        <td width="140">&nbsp;</td>
        <td width="588" align="left"><input name="submit" type="submit" class="button" value=" 保存设置 " />
          <input name="reset" type="reset" class="button" value="重置表单" />
          <input name="return" type="button" class="button" value="返回上一页" onclick="history.go(-1)" />
          <input type="hidden" name="action" value="submit" /></td>
      </tr>
    </table>
</div>
</form>